<?php

namespace app\custom;

use app\BaseController;
use think\facade\Db;

class Index extends BaseController   
{
    public function index()
    {
        $res=Db::name('users')->select();
        dump($res);
        return 'custom index';
    }

    public function hello($name = 'custom index')
    {
        return 'hello,' . $name;
    }
}
